﻿using System;
using System.Collections.Generic;
using Pay.DTO;
using Pay.TO;

namespace Pay.IService {
	public interface ILogisticsListService {
        /// <summary>
        /// 根据支付单号获取物流
        /// </summary>
        /// <param name="PayInfoId"></param>
        /// <returns></returns>
        logistics_list_dto GetLogisticsList(long PayInfoId);
        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        long Add(logistics_list_dto dto);
        /// <summary>
        /// 获取物流列表
        /// </summary>
        /// <param name="Query"></param>
        /// <returns></returns>
        PagedResult<logistics_list_dto> Gets(LogiticsQuery Query);
        /// <summary>
        /// 更新物流信息
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        int Update(logistics_list_dto dto, long id);

        logistics_list_dto GetById(long Id);
        /// <summary>
        /// 获取某单中所有板
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        List<logistics_list_dto> GetPlates(long id);

        /// <summary>
        /// 通过板号获取单
        /// </summary>
        /// <param name="plate_id"></param>
        /// <returns></returns>
        List<logistics_list_dto> GetLogisticByPlateId(long plate_id);
    }
}
